<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>主页sj</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
</head>
<style>
    .layui-top-box {padding:40px 20px 20px 20px;color:#fff}
    .panel {margin-bottom:17px;background-color:#fff;border:1px solid transparent;border-radius:3px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}
    .panel-body {padding:15px}
    .panel-title {margin-top:0;margin-bottom:0;font-size:14px;color:inherit}
    .label {display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;margin-top: .3em;}
    .layui-red {color:red}
    .main_btn > p {height:40px;}
    .pull-right {float: right;}
    .container {
        display: flex; /* 设置为 Flexbox */
        justify-content: center; /* 水平居中 */
        align-items: center; /* 垂直居中 */
    }
</style>
<body>
<div class="layuimini-container">
    <div class="layuimini-main layui-top-box">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md2">
                <div class="col-xs-6 col-md-3">
                    <div class="panel" style="background-color: #96DBB9;">
                        <div class="panel-body">
                            <div class="panel-title">
                                <span class="label pull-right layui-bg-blue">实时</span>
                                <h5>拨打次数</h5>
                            </div>
                            <div class="panel-content">
                                <h1 class="no-margins" ><span id="bscs">0</span></h1>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> </div>
                                <!--                                <small>当前分类通话总数</small>-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-col-md2">
                <div class="col-xs-6 col-md-3">
                    <div class="panel" style="background-color: #72CFA1">
                        <div class="panel-body">
                            <div class="panel-title">
                                <span class="label pull-right layui-bg-cyan">实时</span>
                                <h5>接通数</h5>
                            </div>
                            <div class="panel-content">
                                <h1 class="no-margins"><span id="jts">0</span></h1>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> </div>
                                <!--                                <small>当前分类通话接通数</small>-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-col-md2">
                <div class="col-xs-6 col-md-3">
                    <div class="panel" style="background-color: #34CD82">
                        <div class="panel-body">
                            <div class="panel-title">
                                <span class="label pull-right layui-bg-orange">实时</span>
                                <h5>接通率</h5>
                            </div>
                            <div class="panel-content">
                                <h1 class="no-margins"><span id="jtl">0</span><span>%</span></h1>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-md2">
                <div class="col-xs-6 col-md-3">
                    <div class="panel" style="background-color: #11DD78">
                        <div class="panel-body">
                            <div class="panel-title">
                                <span class="label pull-right layui-bg-green">实时</span>
                                <h5>通话时长</h5>
                            </div>
                            <div class="panel-content">
                                <h1 class="no-margins"><span id="thsc">0</span></h1>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-md2">
                <div class="col-xs-6 col-md-3">
                    <div class="panel" style="background-color: #00FF80">
                        <div class="panel-body">
                            <div class="panel-title">
                                <span class="label pull-right layui-bg-green">实时</span>
                                <h5>计费时长</h5>
                            </div>
                            <div class="panel-content">
                                <h1 class="no-margins"><span id="jfsc">0</span></h1>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="layuimini-container">
        <div class="container">
            <div class="layui-row" style="padding: 50px;">
                <h4> <img src="../images/xcx.jpg"></h4>
                <span class="container" >请使用微信打开云点呼小程序</span>
            </div>
            <div class="layui-row" style="padding: 50px;">
                <h4><img src="../images/gzh.jpg"></h4>
                <span class="container">产品介绍请使用微信扫描关注云点呼公众号</span>
            </div>

        </div>

    </div>


</div>
<script src="/layui/layui.js" charset="utf-8"></script>
<script src="/layui/layui.all.js"></script>
<script src="/js/core.util.js"></script>
<script src="/js/jquery.js"></script>
<script src="/js/home.js?v=0.1"></script>
<script src="/js/common.js"></script>
</body>
<script>

    var layer = layui.layer;
    var $ = jQuery = layui.jquery;
    var form = layui.form;
    var element = layui.element;
    $(function(){
        userInfo = CoreUtil.getData("userInfo");
        userRoles = CoreUtil.getData("userRoles");
        userDepts = CoreUtil.getData("userDepts");
        sysRolesList = CoreUtil.getData("sysRolesList");
        userSysUsers = CoreUtil.getData("userSysUsers");
        hwtj = CoreUtil.getData("hwtj",);
        if (!!hwtj) {
            var jtl = !!hwtj.jtl?hwtj.jtl+"":"0";
            $("#bscs").html(removeTrailingDotZero(hwtj.bscs));
            $("#jts").html(removeTrailingDotZero(hwtj.jts));
            $("#jtl").html(jtl);
            // $("#thsc").html(hwtj.thsc.replace(/\.?0+$/, ""));
            $("#thsc").html(removeTrailingDotZero(hwtj.thsc));
            // $("#jfsc").html(hwtj.jfsc.replace(/\.?0+$/, "")+"分");
            $("#jfsc").html(removeTrailingDotZero(hwtj.jfsc)+"分");
        }

    });
    function removeTrailingDotZero(num) {
        return num.toString().replace(/\.0$/, '');
    }
</script>
</html>